package jannex.sql;

import jannex.JannexException;
import jannex.mapping.ResultSetHandler;

import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Date;
import java.sql.RowId;
import java.sql.SQLWarning;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;

public interface JxCallableStatement extends java.sql.CallableStatement, JxPreparedStatement {

    <E> TypedCallableStatement<E> as(Class<E> elementClass) throws JannexException;

    <E> TypedCallableStatement<E> as(ResultSetHandler<E> handler) throws JannexException;

    @Override
    void registerOutParameter(int parameterIndex, int sqlType) throws JannexException;

    @Override
    void registerOutParameter(int parameterIndex, int sqlType, int scale) throws JannexException;

    @Override
    boolean wasNull() throws JannexException;

    @Override
    String getString(int parameterIndex) throws JannexException;

    @Override
    boolean getBoolean(int parameterIndex) throws JannexException;

    @Override
    byte getByte(int parameterIndex) throws JannexException;

    @Override
    short getShort(int parameterIndex) throws JannexException;

    @Override
    int getInt(int parameterIndex) throws JannexException;

    @Override
    long getLong(int parameterIndex) throws JannexException;

    @Override
    float getFloat(int parameterIndex) throws JannexException;

    @Override
    double getDouble(int parameterIndex) throws JannexException;

    @Override
    @Deprecated
    BigDecimal getBigDecimal(int parameterIndex, int scale) throws JannexException;

    @Override
    byte[] getBytes(int parameterIndex) throws JannexException;

    @Override
    Date getDate(int parameterIndex) throws JannexException;

    @Override
    Time getTime(int parameterIndex) throws JannexException;

    @Override
    Timestamp getTimestamp(int parameterIndex) throws JannexException;

    @Override
    Object getObject(int parameterIndex) throws JannexException;

    @Override
    BigDecimal getBigDecimal(int parameterIndex) throws JannexException;

    @Override
    Object getObject(int parameterIndex, Map<String, Class<?>> map) throws JannexException;

    @Override
    JxRef getRef(int parameterIndex) throws JannexException;

    @Override
    JxBlob getBlob(int parameterIndex) throws JannexException;

    @Override
    JxClob getClob(int parameterIndex) throws JannexException;

    @Override
    JxArray getArray(int parameterIndex) throws JannexException;

    @Override
    Date getDate(int parameterIndex, Calendar cal) throws JannexException;

    @Override
    Time getTime(int parameterIndex, Calendar cal) throws JannexException;

    @Override
    Timestamp getTimestamp(int parameterIndex, Calendar cal) throws JannexException;

    @Override
    void registerOutParameter(int parameterIndex, int sqlType, String typeName) throws JannexException;

    @Override
    void registerOutParameter(String parameterName, int sqlType) throws JannexException;

    @Override
    void registerOutParameter(String parameterName, int sqlType, int scale) throws JannexException;

    @Override
    void registerOutParameter(String parameterName, int sqlType, String typeName) throws JannexException;

    @Override
    URL getURL(int parameterIndex) throws JannexException;

    @Override
    void setURL(String parameterName, URL val) throws JannexException;

    @Override
    void setNull(String parameterName, int sqlType) throws JannexException;

    @Override
    void setBoolean(String parameterName, boolean x) throws JannexException;

    @Override
    void setByte(String parameterName, byte x) throws JannexException;

    @Override
    void setShort(String parameterName, short x) throws JannexException;

    @Override
    void setInt(String parameterName, int x) throws JannexException;

    @Override
    void setLong(String parameterName, long x) throws JannexException;

    @Override
    void setFloat(String parameterName, float x) throws JannexException;

    @Override
    void setDouble(String parameterName, double x) throws JannexException;

    @Override
    void setBigDecimal(String parameterName, BigDecimal x) throws JannexException;

    @Override
    void setString(String parameterName, String x) throws JannexException;

    @Override
    void setBytes(String parameterName, byte[] x) throws JannexException;

    @Override
    void setDate(String parameterName, Date x) throws JannexException;

    @Override
    void setTime(String parameterName, Time x) throws JannexException;

    @Override
    void setTimestamp(String parameterName, Timestamp x) throws JannexException;

    @Override
    void setAsciiStream(String parameterName, InputStream x, int length) throws JannexException;

    @Override
    void setBinaryStream(String parameterName, InputStream x, int length) throws JannexException;

    @Override
    void setObject(String parameterName, Object x, int targetSqlType, int scale) throws JannexException;

    @Override
    void setObject(String parameterName, Object x, int targetSqlType) throws JannexException;

    @Override
    void setObject(String parameterName, Object x) throws JannexException;

    @Override
    void setCharacterStream(String parameterName, Reader reader, int length) throws JannexException;

    @Override
    void setDate(String parameterName, Date x, Calendar cal) throws JannexException;

    @Override
    void setTime(String parameterName, Time x, Calendar cal) throws JannexException;

    @Override
    void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws JannexException;

    @Override
    void setNull(String parameterName, int sqlType, String typeName) throws JannexException;

    @Override
    String getString(String parameterName) throws JannexException;

    @Override
    boolean getBoolean(String parameterName) throws JannexException;

    @Override
    byte getByte(String parameterName) throws JannexException;

    @Override
    short getShort(String parameterName) throws JannexException;

    @Override
    int getInt(String parameterName) throws JannexException;

    @Override
    long getLong(String parameterName) throws JannexException;

    @Override
    float getFloat(String parameterName) throws JannexException;

    @Override
    double getDouble(String parameterName) throws JannexException;

    @Override
    byte[] getBytes(String parameterName) throws JannexException;

    @Override
    Date getDate(String parameterName) throws JannexException;

    @Override
    Time getTime(String parameterName) throws JannexException;

    @Override
    Timestamp getTimestamp(String parameterName) throws JannexException;

    @Override
    Object getObject(String parameterName) throws JannexException;

    @Override
    BigDecimal getBigDecimal(String parameterName) throws JannexException;

    @Override
    Object getObject(String parameterName, Map<String, Class<?>> map) throws JannexException;

    @Override
    JxRef getRef(String parameterName) throws JannexException;

    @Override
    JxBlob getBlob(String parameterName) throws JannexException;

    @Override
    JxClob getClob(String parameterName) throws JannexException;

    @Override
    JxArray getArray(String parameterName) throws JannexException;

    @Override
    Date getDate(String parameterName, Calendar cal) throws JannexException;

    @Override
    Time getTime(String parameterName, Calendar cal) throws JannexException;

    @Override
    Timestamp getTimestamp(String parameterName, Calendar cal) throws JannexException;

    @Override
    URL getURL(String parameterName) throws JannexException;

    @Override
    RowId getRowId(int parameterIndex) throws JannexException;

    @Override
    RowId getRowId(String parameterName) throws JannexException;

    @Override
    void setRowId(String parameterName, RowId x) throws JannexException;

    @Override
    void setNString(String parameterName, String value) throws JannexException;

    @Override
    void setNCharacterStream(String parameterName, Reader value, long length) throws JannexException;

    @Override
    void setClob(String parameterName, Reader reader, long length) throws JannexException;

    @Override
    void setBlob(String parameterName, InputStream inputStream, long length) throws JannexException;

    @Override
    void setNClob(String parameterName, Reader reader, long length) throws JannexException;

    @Override
    JxNClob getNClob(int parameterIndex) throws JannexException;

    @Override
    JxNClob getNClob(String parameterName) throws JannexException;

    @Override
    JxSQLXML getSQLXML(int parameterIndex) throws JannexException;

    @Override
    JxSQLXML getSQLXML(String parameterName) throws JannexException;

    @Override
    String getNString(int parameterIndex) throws JannexException;

    @Override
    String getNString(String parameterName) throws JannexException;

    @Override
    Reader getNCharacterStream(int parameterIndex) throws JannexException;

    @Override
    Reader getNCharacterStream(String parameterName) throws JannexException;

    @Override
    Reader getCharacterStream(int parameterIndex) throws JannexException;

    @Override
    void setAsciiStream(String parameterName, InputStream x, long length) throws JannexException;

    @Override
    void setBinaryStream(String parameterName, InputStream x, long length) throws JannexException;

    @Override
    void setCharacterStream(String parameterName, Reader reader, long length) throws JannexException;

    @Override
    void setAsciiStream(String parameterName, InputStream x) throws JannexException;

    @Override
    void setBinaryStream(String parameterName, InputStream x) throws JannexException;

    @Override
    void setCharacterStream(String parameterName, Reader reader) throws JannexException;

    @Override
    void setNCharacterStream(String parameterName, Reader value) throws JannexException;

    @Override
    void setClob(String parameterName, Reader reader) throws JannexException;

    @Override
    void setBlob(String parameterName, InputStream inputStream) throws JannexException;

    @Override
    void setNClob(String parameterName, Reader reader) throws JannexException;

    @Override
    <T> T getObject(int parameterIndex, Class<T> type) throws JannexException;

    @Override
    <T> T getObject(String parameterName, Class<T> type) throws JannexException;

    @Override
    int executeUpdate() throws JannexException;

    @Override
    void setNull(int parameterIndex, int sqlType) throws JannexException;

    @Override
    void setBoolean(int parameterIndex, boolean x) throws JannexException;

    @Override
    void setByte(int parameterIndex, byte x) throws JannexException;

    @Override
    void setShort(int parameterIndex, short x) throws JannexException;

    @Override
    void setInt(int parameterIndex, int x) throws JannexException;

    @Override
    void setLong(int parameterIndex, long x) throws JannexException;

    @Override
    void setFloat(int parameterIndex, float x) throws JannexException;

    @Override
    void setDouble(int parameterIndex, double x) throws JannexException;

    @Override
    void setBigDecimal(int parameterIndex, BigDecimal x) throws JannexException;

    @Override
    void setString(int parameterIndex, String x) throws JannexException;

    @Override
    void setBytes(int parameterIndex, byte[] x) throws JannexException;

    @Override
    void setDate(int parameterIndex, Date x) throws JannexException;

    @Override
    void setTime(int parameterIndex, Time x) throws JannexException;

    @Override
    void setTimestamp(int parameterIndex, Timestamp x) throws JannexException;

    @Override
    void setAsciiStream(int parameterIndex, InputStream x, int length) throws JannexException;

    @Override
    @Deprecated
    void setUnicodeStream(int parameterIndex, InputStream x, int length) throws JannexException;

    @Override
    void setBinaryStream(int parameterIndex, InputStream x, int length) throws JannexException;

    @Override
    void clearParameters() throws JannexException;

    @Override
    void setObject(int parameterIndex, Object x, int targetSqlType) throws JannexException;

    @Override
    void setObject(int parameterIndex, Object x) throws JannexException;

    @Override
    boolean execute() throws JannexException;

    @Override
    void addBatch() throws JannexException;

    @Override
    void setCharacterStream(int parameterIndex, Reader reader, int length) throws JannexException;

    @Override
    void setRef(int parameterIndex, java.sql.Ref x) throws JannexException;

    @Override
    void setBlob(int parameterIndex, java.sql.Blob x) throws JannexException;

    @Override
    void setClob(int parameterIndex, java.sql.Clob x) throws JannexException;

    @Override
    void setArray(int parameterIndex, java.sql.Array x) throws JannexException;

    @Override
    void setDate(int parameterIndex, Date x, Calendar cal) throws JannexException;

    @Override
    void setTime(int parameterIndex, Time x, Calendar cal) throws JannexException;

    @Override
    void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws JannexException;

    @Override
    void setNull(int parameterIndex, int sqlType, String typeName) throws JannexException;

    @Override
    void setURL(int parameterIndex, URL x) throws JannexException;

    @Override
    void setRowId(int parameterIndex, RowId x) throws JannexException;

    @Override
    void setNString(int parameterIndex, String value) throws JannexException;

    @Override
    void setNCharacterStream(int parameterIndex, Reader value, long length) throws JannexException;

    @Override
    void setNClob(int parameterIndex, java.sql.NClob value) throws JannexException;

    @Override
    void setClob(int parameterIndex, Reader reader, long length) throws JannexException;

    @Override
    void setBlob(int parameterIndex, InputStream inputStream, long length) throws JannexException;

    @Override
    void setNClob(int parameterIndex, Reader reader, long length) throws JannexException;

    @Override
    void setSQLXML(int parameterIndex, java.sql.SQLXML xmlObject) throws JannexException;

    @Override
    void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws JannexException;

    @Override
    void setAsciiStream(int parameterIndex, InputStream x, long length) throws JannexException;

    @Override
    void setBinaryStream(int parameterIndex, InputStream x, long length) throws JannexException;

    @Override
    void setCharacterStream(int parameterIndex, Reader reader, long length) throws JannexException;

    @Override
    void setAsciiStream(int parameterIndex, InputStream x) throws JannexException;

    @Override
    void setBinaryStream(int parameterIndex, InputStream x) throws JannexException;

    @Override
    void setCharacterStream(int parameterIndex, Reader reader) throws JannexException;

    @Override
    void setNCharacterStream(int parameterIndex, Reader value) throws JannexException;

    @Override
    void setClob(int parameterIndex, Reader reader) throws JannexException;

    @Override
    void setBlob(int parameterIndex, InputStream inputStream) throws JannexException;

    @Override
    void setNClob(int parameterIndex, Reader reader) throws JannexException;

    @Override
    int executeUpdate(String sql) throws JannexException;

    @Override
    void close() throws JannexException;

    @Override
    int getMaxFieldSize() throws JannexException;

    @Override
    void setMaxFieldSize(int max) throws JannexException;

    @Override
    int getMaxRows() throws JannexException;

    @Override
    void setMaxRows(int max) throws JannexException;

    @Override
    void setEscapeProcessing(boolean enable) throws JannexException;

    @Override
    int getQueryTimeout() throws JannexException;

    @Override
    void setQueryTimeout(int seconds) throws JannexException;

    @Override
    void cancel() throws JannexException;

    @Override
    SQLWarning getWarnings() throws JannexException;

    @Override
    void clearWarnings() throws JannexException;

    @Override
    void setCursorName(String name) throws JannexException;

    @Override
    boolean execute(String sql) throws JannexException;

    @Override
    int getUpdateCount() throws JannexException;

    @Override
    boolean getMoreResults() throws JannexException;

    @Override
    void setFetchDirection(int direction) throws JannexException;

    @Override
    int getFetchDirection() throws JannexException;

    @Override
    void setFetchSize(int rows) throws JannexException;

    @Override
    int getFetchSize() throws JannexException;

    @Override
    int getResultSetConcurrency() throws JannexException;

    @Override
    int getResultSetType() throws JannexException;

    @Override
    void addBatch(String sql) throws JannexException;

    @Override
    void clearBatch() throws JannexException;

    @Override
    int[] executeBatch() throws JannexException;

    @Override
    boolean getMoreResults(int current) throws JannexException;

    @Override
    int executeUpdate(String sql, int autoGeneratedKeys) throws JannexException;

    @Override
    int executeUpdate(String sql, int[] columnIndexes) throws JannexException;

    @Override
    int executeUpdate(String sql, String[] columnNames) throws JannexException;

    @Override
    boolean execute(String sql, int autoGeneratedKeys) throws JannexException;

    @Override
    boolean execute(String sql, int[] columnIndexes) throws JannexException;

    @Override
    boolean execute(String sql, String[] columnNames) throws JannexException;

    @Override
    int getResultSetHoldability() throws JannexException;

    @Override
    boolean isClosed() throws JannexException;

    @Override
    void setPoolable(boolean poolable) throws JannexException;

    @Override
    boolean isPoolable() throws JannexException;

    @Override
    void closeOnCompletion() throws JannexException;

    @Override
    boolean isCloseOnCompletion() throws JannexException;

    @Override
    <T> T unwrap(Class<T> iface) throws JannexException;

    @Override
    boolean isWrapperFor(Class<?> iface) throws JannexException;

    @Override
    Reader getCharacterStream(String parameterName) throws JannexException;

    @Override
    void setNClob(String parameterName, java.sql.NClob value) throws JannexException;

    @Override
    void setSQLXML(String parameterName, java.sql.SQLXML xmlObject) throws JannexException;

    @Override
    void setBlob(String parameterName, java.sql.Blob x) throws JannexException;

    @Override
    void setClob(String parameterName, java.sql.Clob x) throws JannexException;
}